/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.clooud.util.pmf;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

/**
 *
 * @author selvino
 */
public class PMF {

    private static final PersistenceManagerFactory pmfInstance =
            JDOHelper.getPersistenceManagerFactory("transactions-optional");

    public static PersistenceManagerFactory getInstance() {
        return pmfInstance;
    }
    
    public static PersistenceManager getPersistenceManager() {
        return getInstance().getPersistenceManager();
    }


    
}
